import 'package:flutter/material.dart';

class MyApp10 extends StatelessWidget {
  const MyApp10({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        home: Scaffold(
            appBar: AppBar(
              title: const Text('ListView'),
              backgroundColor: Colors.black26,
              centerTitle: true,
            ),
            body: Center(
              child: ListView(
                // 滚动方向
                // scrollDirection: Axis.horizontal,
                // 是否禁用滚动
                // physics: const NeverScrollableScrollPhysics(),
                children: [
                  Container(
                    width: 700,
                    height: 300,
                    color: Colors.amber,
                    alignment: Alignment.center,
                    child:const Text('this is text'),
                  ),
                  Container(
                    height: 300,
                    color: const Color.fromARGB(255, 7, 15, 255),
                    child:const Text('this is text'),
                  ),
                  Container(
                    height: 300,
                    color: Colors.amber,
                    child:const Text('this is text'),
                  ),
                  Container(
                    height: 300,
                    color: const Color.fromARGB(255, 90, 255, 7),
                    child:const Text('this is text'),
                  ),
                  Container(
                    height: 300,
                    color: Colors.amber,
                    child:const Text('this is text'),
                  ),
                  Container(
                    height: 300,
                    color: const Color.fromARGB(255, 255, 7, 185),
                    child:const Text('this is text'),
                  ),
                ],
              )
            )));
  }
}
